import { WeApp } from '../../common/common';
import * as wux from '../../assets/components/wux';
import httpClient from '../../common/http-client';
import { config } from '../../etc/config';
import wxService from '../../common/wxService'
import utils from '../../utils/utils'
import { prompt } from '../../assets/components/wux';

const app: WeApp = getApp() as WeApp;
interface AdPageData {
}
interface AdPage extends IPage {
}

class AdPage {
	private animation;
	public data: AdPageData = {
		url:`https://wap.ec.59im.com/hd/index.html?${new Date().getSeconds()}`
	}

	public onLoad(options) {
		if(options.url){
			this.setData({
				url:decodeURIComponent(options.url)
			})
		}
	}

	  onShareAppMessage(options) {
		return {
			//title: '集采演示版',
			desc: '集采电商平台，一站式企业化办公阳光采购，该版本专为客户演示、交流存起来!',
			path: `/pages/ad/index?url=${options.webViewUrl}`
		}
	}

}
Page(new AdPage());
